package com.yang.frost.blueberry.service.impl;

import com.yang.frost.blueberry.domain.SysLoginLog;
import com.yang.frost.blueberry.mapper.SysLoginLogMapper;
import com.yang.frost.blueberry.service.SysLoginLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author 10296
 * @date 2021/1/21
 * @Description: 系统登录实现类
 */
@Service
public class SysLoginLogServiceImpl implements SysLoginLogService {

    private Logger logger = LoggerFactory.getLogger(SysLoginLogServiceImpl.class);
    @Autowired
    private SysLoginLogMapper loginLogMapper;

    @Override
    public int saveSysLoginLog(SysLoginLog sysLoginLog) throws Exception {
        return loginLogMapper.saveSysLoginLog(sysLoginLog);
    }

    @Override
    public int updateSysLoginLog(SysLoginLog sysLoginLog) throws Exception {
        return loginLogMapper.updateSysLoginLog(sysLoginLog);
    }

    @Override
    public int deleteSysLoginLog(String id) throws Exception {
        return loginLogMapper.deleteSysLoginLog(id);
    }

    @Override
    public List<SysLoginLog> getSysLoginLogPageList(Map<String, Object> paramsMap) throws Exception {
        return loginLogMapper.getSysLoginLogPageList(paramsMap);
    }
}
